{{- range $key, $value := .CandiVersionMap.k8s }}
  {{- $version := toString $key }}
  {{- $patch := toString $value.patch }}
  {{- $image_version := printf "%s.%s" $version $patch | replace "." "-" }}
---
image: {{ $.ModuleName }}/{{ $.ImageName }}-{{ $version | replace "." "-" }}
fromImage: common/distroless
import:
- image: common/pause
  add: /pause
  to: /pause
  before: setup
- artifact: common/kubernetes-artifact-{{ $image_version }}
  add: /src/_output/bin/kube-apiserver
  to: /usr/bin/kube-apiserver
  before: setup
docker:
  ENTRYPOINT: ["/usr/bin/kube-apiserver"]
{{- end }}
